{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% block title %}
    Document email aliases
{% endblock %}
{% block content %}
    {% origin %}
    <h1>
        Document email aliases
    </h1>
    {% regroup aliases|dictsort:"doc_name" by doc_name as alias_list %}
    <table class="table table-borderless table-sm mt-3">
        <tbody>
        {% for alias in alias_list %}
            {% cycle '' 'table-active' as alternator silent %}
            {% for item in alias.list %}
                <tr {% if alternator %}class="{{ alternator }}"{% endif %}>
                    <td>{{ alias.grouper }}{{ item.alias_type|default:'' }}@{{ ietf_domain }}</td>
                    <td>{{ item.expansion }}</td>
                </tr>
            {% endfor %}
        {% endfor %}
        </tbody>
    </table>
{% endblock %}